package com.gxa.community.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author juran
 * @since 2022-07-19
 */
@Data
@Accessors(chain = true)
@TableName("order_goods_info")
@ApiModel(value = "OrderGoodsInfo对象", description = "被下单商品信息表")
public class OrderGoodsInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品ID")
    private String no;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("原价")
    private BigDecimal originalPrice;

    @ApiModelProperty("实际(销售)价格")
    private BigDecimal actualPrice;

    @ApiModelProperty("佣金 (实际算下来的具体值)")
    private Double commission;

    @ApiModelProperty("多张用'|'分隔, 第一张为商品头图")
    private String pic;

    @ApiModelProperty("1正常('已完成'这个词不恰当) 0已取消 发货详情中的	应发数量: 查询时忽略该字段	实发数量: 查询时该字段=1")
    private Integer status;
}
